/*
 * SonarQube
 * Copyright (C) 2009-2021 SonarSource SA
 * mailto:info AT sonarsource DOT com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
.workspace-nav {
  position: fixed;
  z-index: 451;
  bottom: 0;
  right: 0;
  height: 28px;
}

.workspace-nav-list {
  float: right;
}

.workspace-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: var(--gridSize);
}

.workspace-nav-item-link {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 calc(3.5 * var(--gridSize)) 0 var(--gridSize);
  border: none;
  background-color: var(--gray40);
  color: #fff;
  font-size: var(--smallFontSize);
}

.workspace-nav-item-link:hover,
.workspace-nav-item-link:focus {
  color: #fff;
  opacity: 0.9;
}

.workspace-nav-item-close {
  position: absolute;
  right: 4px;
  top: 4px;
}

.workspace-viewer {
  position: fixed;
  z-index: 450;
  bottom: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  background-color: #fff;
  box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.175);
}

.workspace-viewer-header {
  position: relative;
  height: 30px;
  padding: 3px 10px;
  box-sizing: border-box;
  background-color: var(--gray40);
  color: #fff;
  font-weight: 300;
}

.workspace-viewer-name {
  float: left;
  line-height: var(--controlHeight);
  color: #fff;
  font-weight: 400;
}

.workspace-viewer-name i {
  margin-top: 3px;
}

.workspace-viewer-resize {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 30px;
  height: 5px;
  margin-left: -15px;
  background-image: url();
  cursor: ns-resize;
}

.workspace-viewer-actions {
  float: right;
}

.workspace-viewer-actions a {
  color: inherit;
}

.workspace-header-icon:hover path,
.workspace-header-icon:focus path {
  color: var(--gray40);
}

.workspace-viewer-container {
  height: calc(40vh - 30px);
  min-height: 100px;
  max-height: calc(95vh - 30px);
  padding: 5px 10px;
  overflow-y: scroll;
  overflow-x: auto;
  box-sizing: border-box;
}

.with-workspace .source-viewer {
  padding-bottom: 40vh;
}

.with-workspace .workspace-viewer .source-viewer {
  padding-bottom: 0;
}
